package com.jqk.mybatis.plus.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * @Author:jiangqikun
 * @Date:2022/8/22 16:14
 **/

@Data
@TableName("user")
@Accessors(chain = true)
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class User {

    @TableId(value = "user_id", type = IdType.ASSIGN_ID)
    private Long id;

    private String name;

    private Integer age;

    private String address;

    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @TableField(select = false,fill = FieldFill.INSERT)
    private Integer deleted;

}
